<script>
export default {
  data() {
    customFrom: "h5";
  },
  onLaunch: function () {
    console.log("App Launch");
    // #ifdef H5
    console.log("这是H5环境");
    this.customFrom = "h5";
    // #endif

    // #ifdef APP-PLUS
    console.log("这是App环境");
    this.customFrom = "app";
    // #endif

    // #ifdef MP-WEIXIN
    console.log("这是微信小程序环境");
    this.customFrom = "weixin";
    // #endif
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style lang="scss">
/*每个页面公共css */
@import "uview-plus/index.scss";

.mo-icon-r {
  margin-right: 10px;
}

.mo-icon-l {
  margin-left: 10px;
}

/* 覆盖uview在pc端强制的页面宽度 */
// ::v-deep .uni-app--showlayout,
// ::v-deep .uni-page-wrapper,
// ::v-deep .uni-page-body {
// 	max-width: none !important;
// }

// #ifdef H5
.customHeader{
  padding: 20rpx !important;
}
// #endif

// #ifdef APP-PLUS
.customHeader{
  padding: 60rpx 20rpx 20rpx 20rpx !important;
}
// #endif

// #ifdef MP-WEIXIN
.customHeader{
  padding: 60rpx 20rpx 20rpx 20rpx !important;
}
// #endif
</style>
